package com.my.study.designPatterns.abstractFactoryPattern;

public abstract class PizzaFactory {


    public Pizza orderPizze(Integer type){

        Pizza pizza = createPizze(type);
        pizza.prepare();
        pizza.bake();
        pizza.cut();
        pizza.box();
        return pizza;

    }

    abstract Pizza createPizze(Integer type);

}
